﻿using System.Security.Principal;
using System.Web;

namespace User.Global.Tests.Helper.MockHelper
{
    public class MockHttpContext : HttpContextBase
    {
        private IPrincipal _user;

        public override IPrincipal User
        {
            get
            {
                if (_user == null)
                {
                    _user = new MockPrincipal();
                }
                return _user;
            }
            set
            {
                _user = value;
            }
        }
    }
}
